Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Resolve DSN from runtime in PG Proxy #3458

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jvmakine
Copy link
Contributor

@jvmakine jvmakine commented Nov 22, 2024

  • Remove ModuleContext.GetDatabase calls from runtime for postgres altogether, and just use env variable based DSNs directly

Follow-ups

  • Integrate MySQL proxy
  • Remove DSNs from ModuleContext completely

@github-actions github-actions bot changed the title Juho/module in proxy feat(Juho/module): in proxy Nov 22, 2024
@jvmakine jvmakine changed the title feat(Juho/module): in proxy Resolve DSN from runtime in PG Proxy Nov 22, 2024
@ftl-robot ftl-robot mentioned this pull request Nov 22, 2024
@github-actions github-actions bot changed the title Resolve DSN from runtime in PG Proxy feat: Resolve DSN from runtime in PG Proxy Nov 22, 2024
@jvmakine jvmakine force-pushed the juho/module-in-proxy branch 2 times, most recently from 6f92cd2 to 6457549 Compare November 22, 2024 04:54
if !ok {
return "", fmt.Errorf("database %s not found", params["database"])
}
logger.Debugf("Resolved DSN (%s): %s", params["database"], db.Runtime.DSN)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is where the logic to use a dsn resolver based on provisioned runtime (like type: aws-iam-auth) will be added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant